home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / screen.h < prev    next >
C/C++ Source or Header  |  1995-02-22  |  672b  |  30 lines

  1. #ifndef SCREEN_H
  2. #define SCREEN_H
  3.  
  4. /* Memberwise initialisation and copying should be fine */
  5.  
  6. typedef unsigned char pixel;
  7.  
  8. class
  9. Screen
  10. {
  11. private:
  12.     static pixel *gmem;
  13.     static int scrwidth, scrheight;
  14.     void copy (const Screen& s); 
  15. public:
  16.     Screen();
  17.     Screen(const Screen& s);
  18.     Screen& operator=(const Screen& s);
  19.     inline int getScreenWidth(void) const { return scrwidth; };
  20.     inline int getScreenHeight(void) const { return scrheight; };
  21.     inline pixel* getGraphMem( void) const { return gmem; }
  22.  
  23.     inline void setScreenWidth(int w){ scrwidth=w;}
  24.     inline void setScreenHeight(int h){ scrheight=h;}
  25.  
  26.     inline void setGraphMem( void *gptr) { gmem=(pixel *)gptr; }
  27. };
  28.  
  29. #endif
  30.